package com.abbas.CayTcore.model

import com.abbas.CayTcore.base.BaseModel
import com.abbas.CayTcore.entity.TCoreBase
import com.abbas.CayTcore.subscribeDbResult

class WindingAllDataUpModel: BaseModel() {

    fun getAllCore(block: (data: List<TCoreBase>) -> Unit){
        db.coreDao().getAll()
            .subscribeDbResult({
                block.invoke(it)
            },{

            })
    }
}